package com.fairisanddog.service.serviceimpl;

import com.fairisanddog.entity.Shoes;
import com.fairisanddog.mapper.ShoesMapper;
import com.fairisanddog.service.ShoesService;

import java.util.List;

public class ShoesServiceImpl implements ShoesService {
    private ShoesMapper shoesMapper;
    public void setShoesMapper(ShoesMapper shoesMapper){
        this.shoesMapper = shoesMapper;
    }


    public int addShoe(Shoes shoes) {
        return shoesMapper.addShoe(shoes);
    }

    public Shoes queryShoeById(int sid) {
        return shoesMapper.queryShoeById(sid);
    }

    public List<Shoes> queryAllShoes() {
        return shoesMapper.queryAllShoes();
    }
}
